package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Staging;
import cn.wolfcode.crm.query.StagingQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StagingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Staging record);

    //void insertRelation(@Param("employeeId") Long employeeId, @Param("roleId") Long roleId);

    Staging selectByPrimaryKey(Long id);

    List<Staging> selectAll();

    int updateByPrimaryKey(Staging record);


    int query4Count(StagingQueryObject qo);

    List<?> query4List(StagingQueryObject qo);

    //拒保
    void drop(Long id);

    //提审
    void remand(Long id);

    //退回申请
    void back(@Param("id")Long id, @Param("opinion")String opinion);

    //审核通过
    void through(@Param("id")Long id, @Param("record")Staging record);

    //编辑回显
    Staging echo(Long id);

}